#-*- codeing = utf-8 -*-
#@Time : 2020/9/13 14:14
#@Author : 阳某
#@File : 模拟登录1.py
#@Software : PyCharm

from selenium import webdriver
import time

driver = webdriver.Chrome()
driver.get('https://qzone.qq.com/')
driver.switch_to_frame('login_frame')
a_click = driver.find_element_by_id('switcher_plogin')
a_click.click()
user = driver.find_element_by_id('u')
user.send_keys('1344383767')
time.sleep(1)
password = driver.find_element_by_id('p')
password.send_keys('123456789')
time.sleep(1)
login = driver.find_element_by_id('login_button')
time.sleep(1)
login.click()
time.sleep(3)
driver.quit()